<?php

namespace App\Servers\Uploads;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Storage;

class Oss extends Controller
{
    //生成OSS 上传Token
    public function token()
    {
        $disk = Storage::disk('oss');
        $config = $disk->signatureConfig($prefix = '/', $callBackUrl = '', $customData = [], $expire = 30);
        $configArr = json_decode($config,true);
        return $configArr;
    }
}
